package com.lemurian.entity;
// Generated Jan 13, 2012 10:56:58 AM by Hibernate Tools 3.2.1.GA


import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.lemurian.entity.utils.DefaultPersistence;

/**
 * UserActivityLog generated by aditya
 */
@Entity
@Table(name="tb_activity_log")
//@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@BatchSize(size=10000)
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class ActivityLog extends DefaultPersistence implements Serializable {

	private static final long serialVersionUID = -2807579933991036501L;
	
	@ManyToOne()
    @JoinColumn(name="activity_id")
    private ActivityTypes activityTypes;
	
	private String loginId;
    private Date startTime;
    private Date endTime;
    private Character status;
    private String remarks;
    private String sessionId;
    private String errorCode;
    private String errorMsg;

    
    public ActivityTypes getActivityTypes() {
        return this.activityTypes;
    }

    public void setActivityTypes(ActivityTypes activityTypes) {
        this.activityTypes = activityTypes;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="start_time", length=29)
    public Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="end_time", length=29)
    public Date getEndTime() {
        return this.endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Column(name="status", length=1)
    public Character getStatus() {
        return this.status;
    }

    public void setStatus(Character status) {
        this.status = status;
    }

    @Column(name="remarks", length=512)
    public String getRemarks() {
        return this.remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Column(name="session_id", length=256)
    public String getSessionId() {
        return this.sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    @Column(name="error_code", length=20)
    public String getErrorCode() {
        return this.errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    @Column(name="error_msg", length=256)
    public String getErrorMsg() {
        return this.errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

}